package com.digitalcollege.util;

import cn.hutool.core.util.IdUtil;

/**
 * @class: IdUtils
 * @author: liyusheng
 * @description: id生成器
 * @date: 2022/12/17 21:19
 */

public class IdUtils {

    /**
     * 获取雪花算法id
     *
     * @author liyusheng
     * @return: java.lang.String
     */
    public static String getSnowflakeId() {
        return String.valueOf(IdUtil.getSnowflake().nextId());
    }
}
